# -*- python -*-
# ex: set syntax=python:
###'LM_LICENSE_FILE' : '8000@licserverhpc.cineca.it',

from worker import Steps

Environ={
'MV2_SMP_USE_CMA' : '0',
'CC' : 'pgcc',
'F90' : 'nvfortran',
'FC' : 'nvfortran',
'CUDA_HOME' : '/opt/nvidia/hpc_sdk/Linux_x86_64/21.7/cuda/11.4',
'OMPI_FC' : 'nvfortran',
'OPAL_PREFIX' : '/opt/nvidia/hpc_sdk/Linux_x86_64/21.7/comm_libs/mpi',
'MKLROOT' : '/opt/intel/compilers_and_libraries_2020.3.275/linux/mkl', 
'LD_LIBRARY_PATH' : '/opt/nvidia/hpc_sdk/Linux_x86_64/21.7/cuda/lib64:/opt/nvidia/hpc_sdk/Linux_x86_64/21.7/compilers/lib:/opt/nvidia/hpc_sdk/Linux_x86_64/21.7/math_libs/lib64:/opt/nvidia/hpc_sdk/Linux_x86_64/21.7/comm_libs/lib64:/opt/nvidia/hpc_sdk/Linux_x86_64/21.7/compilers/mpi/lib:/opt/nvidia/hpc_sdk/Linux_x86_64/21.7/compilers/nccl/lib:/opt/nvidia/hpc_sdk/Linux_x86_64/21.7/compilers/nvshmeme/lib:/opt/intel/compilers_and_libraries_2020.3.275/linux/mkl/lib/intel64', 
'PATH' : '/opt/nvidia/hpc_sdk/Linux_x86_64/21.7/cuda/bin:/opt/nvidia/hpc_sdk/Linux_x86_64/21.7/compilers/bin:/opt/nvidia/hpc_sdk/Linux_x86_64/21.7/comm_libs/mpi/bin:/home/buildbot/bin:/usr/local/bin:/usr/bin:/bin',
}

Step = Steps(Environ)


f=BuildFactory(Step.clean+Step.checkout_qe+Step.configure_qe_GPU+Step.make_pw+\
               Step.make_ph+Step.make_epw0+Step.make_epw+Step.test_clean+Step.test0+\
               Step.test_serial_PW+Step.test_serial_CP+Step.test_serial_PH+Step.test_serial_HP)
# Note: serial compilation and execution, see worker.py for definitions
# to re-enable EPW testing, add "Step.test_serial_EPW":

